package com.jetpack_sunflower.viewmodels

import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.jetpack_sunflower.data.PlantAndGardenPlantings

class PlantAndGardenPlantingsViewModelFactory(
        val context: Context,
        val plantAnd: PlantAndGardenPlantings
) : ViewModelProvider.NewInstanceFactory() {
    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
        return PlantAndGardenPlantingsViewModel(context, plantAnd) as T
    }
}